﻿using System;
using System.Collections.Generic;
//using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DevExpress.Xpo;
using TaiLieu;

public partial class tl_Contact : System.Web.UI.UserControl
{
    public XPCollection<Category> list_Category = null;
    public XPCollection<Category> list_Category2 = null;
    public string urllink = "";
    public string _Query = "", _query2 = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        _query2 = QueryHelper.GetQueryString(Request, QueryString._id);
        if (_query2 != "")
        {
            LoadControlCenter("lienhe/goilienhe.ascx");
        }
        else
        {
            LoadControlCenter("lienhe/lienhe.ascx"); 
        }
    }
    protected void LoadControlCenter(string path)
    {
        this.pnContact.Controls.Clear();
        this.pnContact.Controls.Add(LoadControl(path));
    }
}